package ch.hearc.coursjava.meteofinal.com.real.com;

/**
 * Le cosntructeur de ComConnexions doit avoir comme param�tre d'entr�e un
 * MeteoServiceCallback_I
 */
public interface ComConnexions_I {

	public void connect() throws Exception;

	public void disconnect() throws Exception;

	public String getNamePort();

	/**
	 * assynchrone, when data "value" received , must call
	 * altitudePerformed(value) of MeteoServiceCallback_I
	 */
	public void askAltitudeAsync() throws Exception;

	/**
	 * assynchrone, when data "value" received , must call
	 * pressionPerformed(value) of MeteoServiceCallback_I
	 */
	public void askPressionAsync() throws Exception;

	/**
	 * assynchrone, when data "value" received , must call
	 * temperaturePerformed(value) of MeteoServiceCallback_I
	 */
	public void askTemperatureAsync() throws Exception;

	public void start() throws Exception;

	public void stop() throws Exception;

}
